<LayoutTableSmall>
    <!-- 顶部 -->
    <template slot="top"></template>
    <!-- 其他 -->
    <template slot="other"></template>
    <!-- 搜索 -->
    <template slot="search">
        <el-form :inline="true" label-position="left" label-width="80px" :model="mixinTable_tableSearchData"
            @submit.native.prevent class="demo-form-inline">
            <el-form-item>
                <el-select v-model="mixinTable_tableSearchData.type" @change="mixinTable_searchData" style="width:100px"
                    placeholder="支付方式" clearable>
                    <el-option label="微信" value="1"></el-option>
                    <el-option label="支付宝" value="2"></el-option>
                    <el-option label="银行转账" value="3"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-input clearable v-model="mixinTable_tableSearchData.real_name" placeholder="请输入收款账户名"
                    @change="mixinTable_searchData" style="width:200px">
                    <el-button slot="append" icon="el-icon-search" @click="mixinTable_searchData()"></el-button>
                </el-input>
            </el-form-item>
        </el-form>


    </template>
    <!-- 功能 -->
    <template slot="function">
    </template>
    <!-- 表格 -->
    <template slot="table">
        <el-table v-loading="mixinTable_loading" :data="mixinTable_tableData.list" border style="width: 100%;"
            :ref="mixinPage_vueName+'TableSmall'" height="100%"
            @selection-change="mixinTable_handleSelectionChangeTableSmall" :tree-props="{children: 'children'}"
            default-expand-all row-key="id">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column type="index" width="50" :index="mixinTable_indexMethod" align="center" label="#">
            </el-table-column>
            <el-table-column prop="order.order_no" label="订单编号">
            </el-table-column>
            <el-table-column  label="下单时间">
                <template slot-scope="scope">
                    {{ $vFN.Utils.timestampToDate("yyyy-MM-dd HH:mm:ss", scope.row.order.created_at) }}
                </template>
            </el-table-column>
            <el-table-column  label="结算时间">
                <template slot-scope="scope">
                    {{ $vFN.Utils.timestampToDate("yyyy-MM-dd HH:mm:ss", (scope.row.settle_time * 1000)) }}
                </template>
            </el-table-column>
            <el-table-column prop="order.pay_amount" label="实际支付金额(元)">
                <template slot-scope="scope">
                    {{ $vFN.Tools.toMoneyCount( scope.row.order == null ? 0 : scope.row.order.pay_amount) }}
                </template>
            </el-table-column>
            <el-table-column prop="order.promotion_amount" label="优惠抵扣(元)">
                <template slot-scope="scope">
                    {{ $vFN.Tools.toMoneyCount( scope.row.order == null ? 0 : scope.row.order.promotion_amount) }}
                </template>
            </el-table-column>

            <!-- <el-table-column prop="order.commission_amount" label="佣金支出(元)">
            </el-table-column> -->
            <el-table-column prop="fee_amount" label="平台佣金(元)">
                <template slot-scope="scope">
                    {{ $vFN.Tools.toMoneyCount(  scope.row.order == null ? 0 : scope.row.fee_amount) }}
                </template>
            </el-table-column>
            <el-table-column prop="order.freight_amount" label="运费">
                <template slot-scope="scope">
                    {{ $vFN.Tools.toMoneyCount(  scope.row.order == null ? 0 : scope.row.order.freight_amount) }}
                </template>
            </el-table-column>
            <el-table-column label="支付方式">
                <template slot-scope="scope">
                    <div v-show="scope.row.order.pay_type == 1">微信</div>
                    <div v-show="scope.row.order.pay_type == 2">支付宝</div>
                    <div v-show="scope.row.order.pay_type == 3">银行转账</div>
                    <div v-show="scope.row.order.pay_type == 4">余额</div>
                </template>
            </el-table-column>

        </el-table>

    </template>
    <!-- 表格选项 -->
    <template slot="options">
        <el-button :disabled="mixinTable_selectTableData.length<=0" @click="mixinTable_selectTableDeleteData()">
            删除已选</el-button>
        <el-button :disabled="mixinTable_selectTableData.length<=0"
            @click="mixinTable_clearSelectionChangeTableSmall()">取消选择
        </el-button>
    </template>
    <!-- 分页 -->
    <template slot="page">
        <el-pagination class="paginationStyle" v-if="mixinTable_pageData.total>0" background
            @current-change="mixinTable_pagingData($event)" :current-page="mixinTable_pageData.pageNum"
            :page-size.sync="$vFN.Constants.pageSize" layout="total, prev, pager, next,jumper"
            :total.sync="mixinTable_pageData.total">
        </el-pagination>
    </template>
</LayoutTableSmall>